/* $RCSFile: ModulesLayoutPart.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/ADNCRM.Core/Design/ModulesLayoutPart.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:28  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Xml.Serialization;

namespace AddonNice.Design
{
    /// <summary>
    /// A single named HTML fragment
    /// </summary>
    [Serializable]
    public class ModulesLayoutPart
    {

        private string _Html;
        private string _Name;

        public ModulesLayoutPart()
        {
            _Name = string.Empty;
            _Html = string.Empty;
        }

        public ModulesLayoutPart(string name, string html)
        {
            _Name = name;
            _Html = html;
        }

        public string Html
        {
            get
            {
                return _Html;
            }
            set
            {
                _Html = value;
            }
        }

        [XmlAttribute(DataType = "string")]
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                _Name = value;
            }
        }
    }
}
